package com.atguigu.srb.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * ClassName: CoreApplication
 * Package: com.atguigu.srb.core
 * Description:
 *
 * @Author 王晓龙
 * @Create 2023/3/25 10:57
 * @Version 1.0
 */
@SpringBootApplication
@MapperScan(basePackages = "com.atguigu.srb.core.mapper")
@ComponentScan(basePackages = {"com.atguigu.srb.common", "com.atguigu.srb.base", "com.atguigu.srb.core"})
@EnableAsync
@EnableTransactionManagement
public class CoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(CoreApplication.class, args);
    }
}